#include <iostream>
#include <cstdlib>
#include <vector>

class DATA
{
private:
  int index;
  int val;
  char* word;

public:

  /**
   * Default constructor.
   *
   */
  DATA();

  /**
   * Constructor, initialize with index and value.
   *
   * @param _index The index of the element.
   * @param _val The index of the element.
   */
  DATA(int _index, int _val,char* _word);

  
  /**
   * Set the index of element.
   *
   * @param _index The index of element.
   *
   * @return Error code, 0 for OK.
   */
  int set_index(int _index);

  /**
   * Set the value of element.
   *
   * @param _val The value of element.
   *
   * @return Error code, 0 for OK.
   */
  int set_val(int _val);

  /**
   * Get the index of element.
   *
   * @return The index of the element.
   */
  int get_index();

   /**
   * Get the value of element.
   *
   * @return The value of the element.
   */
  int get_val();

  char* get_word();

};
